package cn.liccshop.core.service.shopOrderInfo.service;

import cn.liccshop.core.entity.ShopOrderInfo;
import cn.liccshop.sys.exception.MySystemException;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单信息基本表 服务类
 * </p>
 *
 * @author LiCC
 * @since 2019-05-13
 */
public interface IShopOrderInfoService extends IService<ShopOrderInfo> {

    /**
     * 添加订单信息
     * @param map
     * @return
     */
    ShopOrderInfo addInfo(Map<String, Object> map) throws MySystemException;

    /**
     * 订单支付或确认，不仅仅改变订单状态，还需要写入交易信息
     * @param orderInfo
     * @return
     */
    boolean orderPay(ShopOrderInfo orderInfo);

    /**
     * 订单退货成功或失败
     * 90-成功；95-失败
     * @param orderId
     * @param status
     * @return
     */
    boolean returnProcessingSuccOrFail(String orderId, Integer status);
}
